<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>index</title>
</head>
<body>
<h1>index</h1>
<!--    超链接默认是get方法-->
<a th:href="@{method}">method</a><br>
<form th:action="@{/params}" method="get">
    username: <input type="text" name="username"/><br>
    password:  <input type="text" name="password"/><br>
    <input type="submit" name="submit"/>
</form>
<a th:href="@{/params?username=abc&password=123}">params1</a><br>
<!--必须用单引号-->
<a th:href="@{/params(username='', password=123)}">params2</a><br>
</body>
</html>